﻿using System.Collections.Generic;
using Foothill.DataAccess.Repository;
using Foothill.DataAccess.Interface;

namespace Foothill.Service.VehicleInfo
{
    public class VehicleInfoService : IVehicleInfoService
    {
        private IVehicleInfoRepo _vehicleInfoRepo;

        public VehicleInfoService(IVehicleInfoRepo vehicleInfoRepo)
        {
            _vehicleInfoRepo = vehicleInfoRepo;
        }

        public IDictionary<int, string> GetVehicleMakes()
        {
            return _vehicleInfoRepo.GetVehicleMakes();
        }

        public IDictionary<int, string> GetVehicleModels(int makeId)
        {
            return _vehicleInfoRepo.GetVehicleModels(makeId);
        }

        public IDictionary<int, string> GetTransmissionTypes()
        {
            return _vehicleInfoRepo.GetTransmissionTypes();
        }

        public IDictionary<int, string> GetVehicleConditions()
        {
            return _vehicleInfoRepo.GetVehicleConditions();
        }

        public IDictionary<int, string> GetListingTypes()
        {
            return _vehicleInfoRepo.GetListingTypes();
        }
    }
}
